import javax.swing.JOptionPane;

public class MainManager {

        public static void main(String[] args)
        {
        	OrderList allOrders = new OrderList();
        	allOrders.readFile("orders.txt");
        	
        	ProductList allProducts = new ProductList();
        	allProducts.readFile("products.txt");
        	
        	
        	
        	String listOfOrders = allOrders.getListOfAllOrders(allProducts);
        	allOrders.writeTo("ListOfAllOrders.txt", listOfOrders);
        	String idForReceipt="2";
        	allOrders.writeTo("Receipt.txt", allOrders.getReceiptById(idForReceipt));
        }
}